<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script>
        /*   /*  let user = {
               username:'坤哥',
               age:'2.5',
               gender:'男',
               height:182,
               weight:140,
           } */

        /*   let DogObject = {
              dname: 'mimi',
              color: '黑色',
              age: 6,
              cat: function () {
                  console.log('汪汪')
              },
              call: function () {
                  console.log('吃')
  
              }
          }
          console.log(DogObject.color)
          console.log(DogObject['dname']) */


        /*      // 增 
             - 对象名.新属性 = 新值
     - 对象名.新方法  = function() {} */
        /* DogObject.nini = 666
        DogObject.mage = function () { } */
        /* 删
        delete 对象名.属性名
        delete 对象名.方法名 */

        /* delete DogObject.color  */

        const obj = {
            goodsName: "iphone",
            price: "9999",
            model: "256GB 暗夜紫",
            region: "china",
        };

        
    </script>
</body>

</html>